package com.henu.rescue.utils;

/**
 * @Classname ResultEnums
 * @Description 结果返回枚举类
 * @Date 2023/8/3 23:09
 * @Version 1.0
 */
public enum ResultEnums {
    // 通用结果返回枚举
    BIND_SUCCESS(10000,"绑定成功"),
    PARM_ERROR(10001,"参数错误"),
    BIND_USERNAME_HAS_BIND(10002,"用户名已被绑定，请更换用户名重新绑定"),
    DEL_ERROR(10003,"删除失败"),
    INIT_NOT(10004,"该二维码未进行初始化"),
    SEND_MESSAGE_SUCCESS(10005,"发送信息成功"),
    SEND_MESSAGE_FAILED(10006,"发送信息失败"),
    SUCCESS(20000,"操作成功"),
    DELETE_SUCCESS(20003,"删除成功"),
    ALREADY_DISTRIBUTE(2006,"事故已分配"),
    REGISTER_SUCCESS(20004,"注册成功"),
    REGISTER_FAILED(20009,"注册失败"),
    IS_BUSY(20010,"服务点处于忙碌"),
    QUERY_SUCCESS(20005,"查询成功"),
    ADD_SUCCESS(20006,"添加成功"),
    LOGIN_SUCCESS(20007,"登陆成功"),
    UPDATE_SUCCESS(20008,"更新成功"),
    USERNAME_ALREADY_EXITS(200011,"用户名已经存在"),
    LOGIN_FAILED(30000,"糟糕，登录失败,您的密码域账号不符"),
    UPDATE_FAILED(30005,"更新失败"),
    UPDATE_PASSWORD_SAME(30008,"您输入的密码原密码一致，请从新输入"),
    UPDATE_PASSWORD_SUCCESS(30009,"修改密码成功"),
    ADD_FAILED(300012,"新增失败"),
    PARAMS_ERROR(40006,"参数或者数据格式不合法"),
    UPLOAD_SUCCESS(50003,"上传成功"),
    UPLOAD_FAILED(50004,"上传失败"),
    CREATE_QRCODE_SUCCESS(50006,"生成二维码成功"),
    CREATE_QRCODE_FAILED(50007,"生成二维码失败"),
    NO_REPLY(5008,"为给用户反馈，无法结束")
    ;
    private Integer code;
    private String msg;

    ResultEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
